//
//  RProjectionScreenControlView.h
//  iPlan
//
//  Created by 侯伟 on 2021/9/29.
//

#import <UIKit/UIKit.h>
#import <SJVideoPlayer/SJControlLayerDefines.h>
#import <SJVideoPlayer/SJEdgeControlLayer.h>

#import "CLUPnPServer.h"
#import "CLUPnP.h"

NS_ASSUME_NONNULL_BEGIN

@protocol RProjectionScreenControlViewDelegate <NSObject>
@optional
///
/// 点击返回
///
- (void)backItemClickOnTheControlLayer:(id<SJControlLayer>)controlLayer;

///
/// 点击停止
///
- (void)stopItemClickOnTheControlLayer:(id<SJControlLayer>)controlLayer;

/// 切换
- (void)switchItemClickOnTheControlLayer:(id<SJControlLayer>)controlLayer;


@end

@class RVideoUrlObj;
@interface RProjectionScreenControlView : UIView<SJControlLayer>

@property(nonatomic,strong)CLUPnPDevice* device;

@property(nonatomic,copy)NSString* url;

@property(nonatomic,copy)NSString* title;

@property(nonatomic,assign)NSTimeInterval duration;

@property (nonatomic, weak, nullable) id<RProjectionScreenControlViewDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
